package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberItemCartypeMapper;
import com.whq.entity.MemberItemCartype;
import com.whq.service.MemberItemCartypeService;

@Service(value = "tdMemberItemCartypeService")
public class MemberItemCartypeServiceImpl implements MemberItemCartypeService {

    @Autowired
    private MemberItemCartypeMapper<MemberItemCartype>tdMemberItemCartypeMapper;
    
    @Override
    public Integer insertSelective(MemberItemCartype tdMemberItemCartype) throws Exception {
           return this.tdMemberItemCartypeMapper.insertSelective(tdMemberItemCartype);
        }

    @Override
    public Integer insertBatch(List<MemberItemCartype> tdMemberItemCartype) throws Exception {
           return this.tdMemberItemCartypeMapper.insertBatch(tdMemberItemCartype) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberItemCartypeMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberItemCartypeMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberItemCartype tdMemberItemCartype) {
           return this.tdMemberItemCartypeMapper.updateByPrimaryKeySelective(tdMemberItemCartype);
    }

    @Override
    public MemberItemCartype findById(Object id) {
           return (MemberItemCartype) this.tdMemberItemCartypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberItemCartype> selectByCondition(MemberItemCartype tdMemberItemCartype) {
           return (List<MemberItemCartype>) this.tdMemberItemCartypeMapper.selectByCondition(tdMemberItemCartype);
    }

    @Override
    public Integer selectCountByCondition(MemberItemCartype tdMemberItemCartype) {
           return  this.tdMemberItemCartypeMapper.selectCountByCondition(tdMemberItemCartype);
    }

}
